package com.project.study.farming.base.entity.po;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;

@SuppressWarnings("all")
public class Demo {
    List<Integer> list = new ArrayList<>();
    {
        for(Integer i : list){
            list.remove(i);
        }
    }
    AtomicInteger b = new AtomicInteger(1);

    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        for(int i = 0; i < 10; i++){
            list.add(i);
        }
        Iterator<Integer> it = list.iterator();
        while (it.hasNext()){
            Integer i = it.next();
            if(i < 5){
                it.remove();
            }
        }
        System.out.println(list);
    }
}
